package com.sailorj.mapper;

import com.sailorj.entity.TbRepair;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TbRepairMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TbRepair record);

    int insertSelective(TbRepair record);

    TbRepair selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbRepair record);

    int updateByPrimaryKey(TbRepair record);

    @Select("select * from tb_repair where is_delete = 0 limit #{page},#{size}")
    List<TbRepair> selectRepairList(@Param("page") Integer page, @Param("size")Integer size);

    @Select("select * from tb_repair where is_delete = 0 ")
    List<TbRepair> getRepairList();

    @Select("select count(*) from tb_repair")
    Long getTotal();
}